package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/net/ghttp"
)

// UploadReq 上传参数
type UploadReq struct {
	g.Meta `path:"/upload/file" method:"post" mime:"multipart/form-data" tags:"公共" summary:"上传文件"`
	File   *ghttp.UploadFile `json:"file" type:"file" v:"required#请选择上传的文件" dc:"选择上传文件"`
}

// UploadRes 返回参数
type UploadRes struct {
	Name string `json:"name" dc:"文件名称"`
	Path string `json:"path"  dc:"存储路径"`
	Url  string `json:"url"  dc:"访问URL"`
}
